package kr.hkit.powerjava.chaper05.work;

import java.util.Scanner;

public class work15 {
	public static void main(String[] args) {
		
		final double PI = 3.14;
		int radius;
		int high;
		double bulk;
				
		Scanner input = new Scanner(System.in);
		System.out.print("원기둥 밑면의 반지름을 입력하시오:");
		radius = input.nextInt();
		System.out.print("원기둥의 높이를 입력하시오: ");
		high = input.nextInt();
		
		bulk = PI * radius * radius * high;
		System.out.println("원기둥의 부피는 " + bulk + "입니다.");
	}
}
